---
 clients/mwm/WmFunction.c                   |    8 ++++----
 demos/lib/Xmd/onHelp.c                     |    2 +-
 demos/programs/Exm/simple_app/simpleDemo.c |    2 +-
 demos/programs/filemanager/actions.c       |    2 +-
 demos/programs/fileview/text.c             |    2 +-
 demos/programs/popups/autopopups.c         |    2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)

--- a/clients/mwm/WmFunction.c
+++ b/clients/mwm/WmFunction.c
@@ -1126,12 +1126,12 @@ Boolean F_Exec (String args, ClientData
 		directory, then we must call execlp and not execl
 		*/
 		shellname = shell;
-		execlp (shell, shellname, "-c", args, 0);
+		execlp (shell, shellname, "-c", args, (char *) 0);
 	    }
 	    else
 	    {
 		shellname++;
-		execl (shell, shellname, "-c", args, 0);
+		execl (shell, shellname, "-c", args, (char *) 0);
 	    }
 	}
 
@@ -1140,9 +1140,9 @@ Boolean F_Exec (String args, ClientData
 	 * Try /bin/sh .
 	 */
 #ifdef SVR4
-        execl ("/usr/bin/sh", "sh", "-c", args, 0);
+        execl ("/usr/bin/sh", "sh", "-c", args, (char *) 0);
 #else
-        execl ("/bin/sh", "sh", "-c", args, 0);
+        execl ("/bin/sh", "sh", "-c", args, (char *) 0);
 #endif
 
 
--- a/demos/lib/Xmd/onHelp.c
+++ b/demos/lib/Xmd/onHelp.c
@@ -66,7 +66,7 @@ int main(int argc, String argv[])
   Widget dismiss;
 
   toplevel = XtVaAppInitialize(&app_context, "HelpOnHelp", NULL, 0, 
-			       &argc, argv, NULL, 0);
+			       &argc, argv, NULL, NULL);
   n = 0;
   XtSetArg(args[n], XmdNhelpFile, "helpOn"); n++;
   help = XmdCreateHelp(toplevel, "help", args, n);
--- a/demos/programs/Exm/simple_app/simpleDemo.c
+++ b/demos/programs/Exm/simple_app/simpleDemo.c
@@ -162,7 +162,7 @@ main (int argc, char **argv)
 
   menu = XmCreatePulldownMenu(menuBar, "FileMenu", NULL, 0);
 
-  XtVaSetValues(cascade, XmNsubMenuId, menu, 0);
+  XtVaSetValues(cascade, XmNsubMenuId, menu, NULL);
 
   str = XmStringCreateLocalized("Quit");
   menuitem = XtVaCreateManagedWidget("item", xmPushButtonWidgetClass,
--- a/demos/programs/filemanager/actions.c
+++ b/demos/programs/filemanager/actions.c
@@ -91,7 +91,7 @@ viewCB(Widget widget, char   *type, XtPo
   XtVaSetValues(fileviewer,
 		XmNlayoutType, spatial,
 		XmNentryViewType, size,
-		0, 0);
+		NULL);
 
   fixViewerSize(XtParent(fileviewer), NULL, NULL);
 
--- a/demos/programs/fileview/text.c
+++ b/demos/programs/fileview/text.c
@@ -160,7 +160,7 @@ void NewPaneCallback(Widget widget, View
       XtSetValues(XtParent(new->text), args, n);
       XmTextSetTopCharacter(new->text,
 			    XmTextGetTopCharacter(this->current_pane->text));
-      XtVaSetValues(target, XmNheight, (Dimension) height/2);
+      XtVaSetValues(target, XmNheight, (Dimension) height/2, NULL);
    }
    printf("source text set\n");
    XtManageChild(new->text);
--- a/demos/programs/popups/autopopups.c
+++ b/demos/programs/popups/autopopups.c
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
   XmString	str, tmp1, tmp2;
 
   shell     = XtVaAppInitialize(&context, APP_CLASS, NULL, 0, &argc, argv,
-				NULL, 0);
+				NULL, NULL);
 
   frame1 = XmCreateFrame(shell, "outerframe", NULL, 0);
   XtManageChild(frame1);
